import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus';
import axios from "axios";
import 'element-plus/lib/theme-chalk/index.css';
import qs from "qs";
import * as echarts from 'echarts';
import {ElMessage} from 'element-plus'
import '@/css/init.css'
const app = createApp(App).use(router).use(ElementPlus)
let Base64 = require('js-base64').Base64;
app.config.globalProperties.$axios = axios
app.config.globalProperties.$qs = qs
app.config.globalProperties.$Base64 = Base64
app.config.globalProperties.$echarts = echarts
app.config.globalProperties.$func = {
    goPage,

}
app.config.globalProperties.$ElMessage = ElMessage

// eslint-disable-next-line no-unused-vars
function goPage(url) {
    router.push({path: url})
}

app.mount('#app')
